package com.study.dao; 

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.study.entity.User;

/**  
 *  操作数据库的dao层
 */  

public interface UserDao  
{  
    
    //增加一个User
    public void saveUser(User user);
	
	//根据id查询User
    public User getUserById(String id);
	
	
	//分页条件查询User
	public List<User> listUser(@Param("user") User user, @Param("from") String from, @Param("number") String number);
	
	public long getUserCount(@Param("user") User user);
	
	
	
	
	//根据id删除User
	public boolean removeUserById(String id);
	
	//更新User
	public void updateUser(User user);
	
	
	/**
	 *	条件更新
	 */
	
	
	
	//更新User表中的password
	public boolean updatePasswordInUser(@Param("id") String id, @Param("password")String password);
}